﻿<UserControl x:Class="AboutControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
              xmlns:Commands="clr-namespace:iConverter.Commands" 
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="300"   DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <StackPanel TextBlock.FontSize="{Binding FontSize, RelativeSource={RelativeSource TemplatedParent}}"   >
        <TextBlock x:Name="txbAboutVersion" Text="{Binding Path=Version,  StringFormat=版本: {0}}" />

        <TextBlock ><Hyperlink   x:Name="hplVersionandCopyRightInfo"  TextDecorations="Underline"  Command="{x:Static Commands:iConverterCommands.ShowVersionAndCopyRightInfoCommand}" ><Run Text="版本和版权信息"/></Hyperlink></TextBlock>


        <TextBlock x:Name="txbCopyRight" Text="{Binding Path=CompanyName, StringFormat=© {0} 保留所有权利}" />

        <TextBlock ><Hyperlink   x:Name="hplViewLicense"  TextDecorations="Underline"  Command="{x:Static Commands:iConverterCommands.ShowLicenseInfoCommand}" ><Run Text="查看许可协议"/></Hyperlink></TextBlock>


    </StackPanel>
</UserControl>
